<?php
/**
 * @version		$Id: projid.php 2011.08.11 thierry $
 * @package		admin
 * @subpackage	com_projid
 * @copyright	Copyright (C) 2011 Pojid All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');

// Set some global property
$document = JFactory::getDocument();
$document->addStyleDeclaration('.icon-48-projid {background-image: url(../media/com_projid/images/small_report.png);}');
 
//admin links

JsubMenuHelper::addEntry(JText::_('COM_PROJID_EDIT_SERVER'),'index.php?option=com_projid&amp;view=servers');
JsubMenuHelper::addEntry(JText::_('COM_PROJID_EDIT_QUERY'),'index.php?option=com_projid&amp;view=queries');
JsubMenuHelper::addEntry(JText::_('Liste param&egrave;tres'),'index.php?option=com_projid&amp;view=params');
JsubMenuHelper::addEntry(JText::_('COM_PROJID_EDIT_GRAPHIC'),'index.php?option=com_projid&amp;view=graphics');
JsubMenuHelper::addEntry(JText::_('Birt'),'index.php?option=com_projid&amp;view=birts');
JsubMenuHelper::addEntry(JText::_('Birt param&egrave;tres'),'index.php?option=com_projid&amp;view=links');
JHtml::_('behavior.framework',true);

// import joomla controller library
jimport('joomla.application.component.controller');

// Get an instance of the controller prefixed by Projid
$controller = JController::getInstance('Projid');

// Perform the Request task
$controller->execute(JRequest::getCmd('task'));

// Redirect if set by the controller
$controller->redirect();
